import request from './request'
/**
 * 
 * @param {*} params 
 * @returns 
 * 订单列表
 */
export const orderList = (params) => {
    return request({
        url: '/Order',
        method: 'get',
        params
    })
}
/**
 * 
 * @param {*} id 
 * @returns
 * 订单详情 
 */
export const orderEdit = (id, params) => {
    return request({
        url: `/Order/${id}`,
        method: 'get',
        params
    })
}
/**
 * 
 * @param {*} params 
 * @returns 
 * 订单退款
 */
export const refundInterface = (params) => {
    return request({
        url: '/refund',
        method: 'post',
        params
    })
}

/**
 * 
 * @param {*} params 
 * @returns 
 * 取消订单
 */
export const cancelOrder = (params) => {
    return request({
        url: '/cancelServiceOrder',
        method: 'post',
        params
    })
}
/**
 * 
 * @param {*} params 
 * @returns 
 * 完结订单
 */
export const endOrder = (params) => {
    return request({
        url: '/endServiceOrder',
        method: 'post',
        params
    })
}

